var express = require('express');
var router = express.Router();
var detail = require("../data/detail.js");
router.post("/",(req,res,next)=> {
    let id = req.body.id;//这个一个坑，number传过来成了string
    id = parseInt(id);
    let data = detail.list.filter(item=> item.id === id );

    res.send({status:200,message:"",data:data[0]});
});


module.exports = router;
